package com.woniuxy.classteacher.mapper;

import com.woniuxy.commons.entity.ChangeClass;
import com.woniuxy.commons.entity.Vedio;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: 牟强
 * @Date: 2020/7/20/020 11:20
 * @Description:
 */
@Repository
public interface ChangeClassMapper {

    /**
     * @Author: 牟强
     * @Date: 2020/7/20/020 11:21
     * @Description: 添加转班表
     * @Param: [changeClass]
     * @return: void
     */
    public void add(ChangeClass changeClass);

    /**
     * @Author: 牟强
     * @Date: 2020/7/20/020 12:15
     * @Description: 根据教师Id查询转班列表
     * @Param: [teacherId]
     * @return: java.util.List<com.woniuxy.commons.entity.ChangeClass>
     */
    public List<ChangeClass> findChangeClassByTeacherId(int teacherId);

    /**
     * @Author: 牟强
     * @Date: 2020/7/21/021 11:36
     * @Description: 修改转班表状态
     * @Param: [status]
     * @return: void
     */
    public void updateChangeClassStatus(@Param("status") String status, @Param("cId") int cId);

    /**
     * @Author: 牟强
     * @Date: 2020/7/23/023 11:03
     * @Description: 根据教师id查询班主任id
     * @Param: [teacherId]
     * @return: java.util.List<java.lang.Integer>
     */
    public List<Integer> findTmIdByTeacherId(int teacherId);

    /**
     * @Author: 牟强
     * @Date: 2020/7/29/029 12:18
     * @Description: 判断学生是否在转班过程中
     * @Param: [studentId]
     * @return: java.lang.Integer
     */
    public Integer isStudentInChangeClassPeriod(int studentId);

}
